package leetcode.biweekly.week97;

import java.util.ArrayList;
import java.util.List;

//Solution1Test
public class Solution1 {

	public int[] separateDigits(int[] nums) {
		List<Integer> list = new ArrayList<>();
		for (int num : nums) {
			String str = String.valueOf(num);
			for (char c : str.toCharArray()) {
				list.add(c - '0');
			}
		}
		int[] ans = new int[list.size()];
		for (int i = 0; i < list.size(); i++) {
			ans[i] = list.get(i);
		}
		return ans;
	}
}
